# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git' # 清华大学源

target 'SmallElephant' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  # Pods for SmallElephant
  pod 'Yoga'
  pod 'YogaKit'
  pod 'AFNetworking', '~> 3.2.1', :subspecs => ['Reachability', 'Serialization', 'Security', 'NSURLSession']
  pod 'SDWebImage'
  pod 'MJRefresh'
  pod 'SVProgressHUD'
end

post_install do |installer|
  # 消除版本警告
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
      end
    end
  end
end
